<script lang="ts" setup>
import router from "@/router";

// 跳转立刻注册
function resert() {
  router.push("/register");
}
</script>

<template>
  <div class="dashboard-container">
    <h2 class="tip">继续以完成第三方账号绑定</h2>
    <div class="imgs">
      <el-image></el-image>
      <el-image></el-image>
      <el-image></el-image>
    </div>
    <p class="tip">
      你已通过 <b id="platform">微信</b> 授权，完善以下登录信息即可完成绑定
    </p>
    <el-form>
      <el-form-item>
        <el-input
          class="p-input"
          placeholder="请输入手机号"
          size="large"
        ></el-input>
      </el-form-item>
      <el-form-item>
        <el-input
          class="p-input"
          placeholder="请输入密码"
          size="large"
        ></el-input>
      </el-form-item>
      <el-form-item class="untype">
        <el-link type="primary" id="msg-check">短信验证绑定</el-link>
      </el-form-item>
      <el-form-item class="login">
        <el-button size="large">登陆并绑定已有帐号</el-button>
      </el-form-item>
    </el-form>
    <div>
      <el-text type="info">没有账号？</el-text>
      <el-link type="primary" @click="resert">立刻注册</el-link>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.dashboard-container {
  position: relative;
  margin: 4em 16em;
  padding: 4em 0 8em;
  border: 1px solid var(--el-border-color);
  border-radius: 0.5em;
  box-shadow: 0 0 3em 0.05em #ddd;
  background: #fff;
  text-align: center;
}

.el-form {
  width: 100%;
  margin: auto;
}

.el-form-item {
  margin: 2em 0;
}

.el-form-item.untype {
  margin: -1.2em 0;
}

:deep(.el-form-item__content) {
  margin: auto;
  justify-content: center;
}

:deep(.el-input) {
  display: block;
}

:deep(.el-input__wrapper) {
  width: calc(29em - 20px);
  border-radius: 10px;
  background: rgb(232, 240, 254);
}

:deep(#msg-check) {
  position: relative;
  right: -11em;
  text-align: right;
}

.dashboard-container .login {
  display: flex;
  justify-content: center;
}

.dashboard-container .login * {
  display: block;
  margin: 0 auto;
}

.dashboard-container .login button {
  padding: 0 5.5em;
  background: rgb(250, 118, 21);
  color: #fff;
  font-weight: bolder;
  border-radius: 5px;
  font-size: 20px;
}
</style>
